<?php
//print_r($online_users);
if( count($online_users)>0 )
{
  foreach ($online_users as $row)
  {        
    echo "<tr>\n";
      echo "<td><img src='".base_url()."img/icons/{$row->gender}.png' /></td>\n";
      echo "<td>{$row->id}</td>\n";      
      echo "<td><a href='javascript: view_user_activity({$row->id})' >{$row->username}</a></td>\n";
      echo "<td>{$row->email}</td>\n";
      echo "<td>{$row->num_affiliate}</td>\n"; // Affiliate
      echo "<td>{$row->timestamp}</td>\n";
      echo "<td>".substr($row->registration_date,0,10)."</td>\n";
      echo "<td>{$row->last_message_time}</td>\n"; // Last message date
      echo "<td>{$row->coins}</td>\n"; // Coins
      echo "<td>{$row->bonus_coins}</td>\n"; // Bouns coins
      echo "<td>{$row->expenditure}</td>\n"; // expenditure
    echo "</tr>\n\n";
  }
} 
else
{
  echo "<tr><td>".lang('no_users_online')."</td></tr>\n";
}
?>
